24. 用Honggfuzz进行模糊测试

安装honggfuzz

git clone https://github.com/google/honggfuzz.git
make
sudo apt install binutils-dev libunwind-dev
sudo make install

如何用HonggFuzz编译程序?

hfuzz-clang -fsanitize=address imgRead.c -g O0 -o imgRead_hfuzz

模糊测试程序

honggfuzz -i input -–workspace output -- ./imgRead ___FILE___